﻿using System;
using System.Diagnostics;
using DataLoader.Common;
using DataLoader.UI.Services;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DataLoader.UI.Test
{
    [TestClass]
    public class AuthServiceTest
    {
        [TestMethod]
        public void AuthServiceIsNotAdminTest()
        {
            bool isAdmin;            
            isAdmin = new AuthService().IsInGroup("AvitalY", @"UK\SG. DWH - Developer Admin");
            Assert.IsFalse(isAdmin, "AvitalY is not admin, yipee....");
        }


        [TestMethod]
        public void AuthServiceIsAdminTest()
        {
            bool isAdmin;
            isAdmin = new AuthService().IsInGroup("ADM_AvitalY", @"UK\SG. DWH - Developer Admin");
            Assert.IsTrue(isAdmin, "AvitalY is not admin, yipee....");
        }
    }
}
